package com.example.demo.sys.dto;

import com.example.demo.sys.model.SysDept;
import org.springframework.beans.BeanUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 蔡超 on 2018/10/7.
 */
public class DeptLevelDto extends SysDept {

    private List<DeptLevelDto> list = new ArrayList<DeptLevelDto>();

    public static DeptLevelDto adapt(SysDept sysDept){
        DeptLevelDto deptLevelDto = new DeptLevelDto();
        BeanUtils.copyProperties(sysDept,deptLevelDto);
        return  deptLevelDto;
    }

}
